package com.yurui01;

import org.springframework.stereotype.Component;

/**
 * 此处的bean会被GlobalConfig上的@ComponentScan扫描到容器中
 * 它是在ConfigurationClassPostProcessor类中才被加载的
 */
@Component
public class OtherPackageBean {
    public void print(){
        System.out.println("OtherPackageBean");
    }
}
